import request from '@/utils/request'

// 查询优势列表
export function listAdvantage(query) {
  return request({
    url: '/business/advantage/list',
    method: 'get',
    params: query
  })
}

// 查询优势详细
export function getAdvantage(id) {
  return request({
    url: '/business/advantage/' + id,
    method: 'get'
  })
}

// 新增优势
export function addAdvantage(data) {
  return request({
    url: '/business/advantage',
    method: 'post',
    data: data
  })
}

// 修改优势
export function updateAdvantage(data) {
  return request({
    url: '/business/advantage',
    method: 'put',
    data: data
  })
}

// 删除优势
export function delAdvantage(id) {
  return request({
    url: '/business/advantage/' + id,
    method: 'delete'
  })
}
